<template>


</template>

<script lang="ts">
  import { ElMessageBox, ElMessage } from 'element-plus'
  import axios from "axios";
  import { ref } from 'vue';

  export default {

    name: 'Home',
    components: {},
    data() {
      return {

      }
    },
    created() {

    },
    methods: {
      load() {
        let _this = this
        axios.get("http://localhost:8083/user/userPage", {
          // get请求携带的参数
          params: {
            pageNum: this.currentPage,
            pageSize: this.pageSize,
            search: this.search
          }
        }).then(response => {
          console.log(response)
          _this.tableData = response.data.records
          this.currentPage = response.data.current
          this.total = response.data.total
          this.pageSize = response.data.size
        })
      }

    },
  
}


</script>